<?php
include("../share/config.php");
$sql = "SELECT MAX(id) FROM notice";
$result=mysqli_query($conn,$sql);
$row= mysqli_fetch_array($result,MYSQLI_ASSOC);
$new_id =  $row["MAX(id)"];
$sql = "select * from notice where id = $new_id";
$result=mysqli_query($conn,$sql);
while($row = mysqli_fetch_array($result,MYSQLI_ASSOC)){
	echo "最新公告：".$row["title"]."-".$row["con"];
	break;
}
?>
 